var globalVar = 'This is global variable';

function globalFunction(){

	var localVariable = 'This is local variable';
	console.log('在gobalFunction函数中，下面来查看全局变量和局部变量');
	console.log("globalVar",globalVar);
	console.log("localVariable",localVariable);

	function localFunction(){
		var innerLocalVariable = 'This is inner local variable';

		console.log("下面在localFunction中查看globalVar,localVariable,innerLocalVariable:");
		console.log("globalVariable:" + globalVar);
		console.log("localVariable:" + localVariable);
		console.log("innerLocalVariable:" + innerLocalVariable);
      
	}
    localFunction();
}

globalFunction();